package com.aivin.firplugin.action;

import com.aivin.firplugin.dialog.ApkInfoInputDialog;
import com.aivin.firplugin.tool.ResourceTool;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.CommonDataKeys;
import com.intellij.openapi.project.Project;
import javax.annotation.Nonnull;

public class UploadApkAction extends AnAction {

    @Override
    public void actionPerformed( @Nonnull AnActionEvent event) {
        Project project = event.getData(CommonDataKeys.PROJECT);
        ApkInfoInputDialog apkInfoInputDialog = new ApkInfoInputDialog(project);
        apkInfoInputDialog.setTitle( ResourceTool.instance().getString("pluginName") );
        apkInfoInputDialog.show();
    }
}
